package com.zzyl.mapper;

import com.zzyl.entity.Bed;
import com.zzyl.vo.BedVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BedMapper {

    List<BedVo> getBedsByRoomId(Long roomId);

    void createBed(Bed bedInfo);

    Bed getBedInfoByID(Integer id);

    /**
     * 更新床位信息
     * @param updateBedInfo
     * @return
     */
    void updateBedInfo(Bed updateBedInfo);

    /**
     * 根据床位ID删除床位信息
     * @param id
     * @return
     */
    void deleteBedInfoByID(Long id);
}

